if vim.loader then
	vim.loader.enable()
end

_G.dd = function(...)
	require("util.debug").dump(...)
end
vim.print = _G.dd

-- here I have to set "XDG_CONFIG_HOME" to fix CopilotChat.nvim issue
local is_windows = os.getenv("OS") == "Windows_NT"
if is_windows then
	vim.fn.setenv("XDG_CONFIG_HOME", vim.fn.expand("$HOME/AppData/Local"))
else
	vim.fn.setenv("XDG_CONFIG_HOME", vim.fn.expand("$HOME/.config"))
end
-- vim.fn.setenv("XDG_CONFIG_HOME", vim.fn.expand("$HOME/.config"))

require("config.lazy")
